package cn.smbms.vo;

import java.util.List;

import com.github.pagehelper.PageInfo;

public class PageVo<T> {

    private List<T> list;
    private long total;

    public PageVo(){}

    public PageVo(List<T> list){
        this.list=list;
        PageInfo<T> pageInfo=new PageInfo<T>(list);
        this.total=pageInfo.getTotal();
    }

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }
}
